using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using HDAPI;
using LitJson;


public partial class sample_model : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        HDBase hd = new HDBase(Request);
        Response.Write("<b>All models from vendor Nokia</b> <br>");
        if (hd.model("Nokia"))
        {
            JsonData data = hd.getModel();
            foreach (JsonData o in data["model"])
            {
                Response.Write(o.ToJson() + "<br>");
            }
        }
        else
        {
            Console.WriteLine("failed");
        }
    }
}
